<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; charset=utf-8" %>
<html>
  <head>
    <title>凯乐靠谱版</title>
  </head>
  
  <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
  <script type="text/javascript">
  
  function search(){
  	var url = 'http://192.168.1.101:8080/KillerServer/killerWeb.sp?method=search';
	var gameId = $("#gameId").val();
	var shuiweiOffset = $("#shuiweiOffset").val();
		var daxiaoOffset = $("#daxiaoOffset").val();
		var hasDaxiao = $("#hasDaxiao").val();
	$.post( url , {gameId:gameId,shuiweiOffset:shuiweiOffset,hasDaxiao:hasDaxiao,daxiaoOffset:daxiaoOffset} , function( data )
	{		
		var ret =  data;
		$("#result").empty();
		$("#result").html(ret);
	} , 'html' );
	}
	
	 function getDetail(){
  	var url = 'http://192.168.1.101:8080/KillerServer/killerWeb.sp?method=getDetail';
	var gameId = $("#gameId").val();
	$.post( url , {gameId:gameId} , function( data )
	{		
		var ret =  data;
		$("#result").empty();
		$("#result").html(ret);
	} , 'html' );
	}
  </script>
  
  <body onload="getDetail()">
  	<div>比赛Id:<input id="gameId" type="text" value=<%=request.getParameter("gameID")%> >水位偏离值:<input id="shuiweiOffset" type="text" value="0.1">加大小<input id="hasDaxiao" type="text" value="0">大小球偏离值:<input id="daxiaoOffset" type="text" value="1"><input type="submit" value="我查" onclick="search()"></div>
  	  	<div>
  		<table id="result" style="border: solid 2px;">  
  		</table>
  	</div>
  </body>
</html>
